function alphanumeric(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (!((unicode==8)||(unicode==32)||(unicode==9))){ //keys which we want to allow
	if (!(((unicode>48)||(unicode<57)) || ((unicode>64)&&(unicode<91)) || ((unicode>96)&&(unicode<123)))){
		return false
		}
	}	
}

function phoneonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (!((unicode==8)||(unicode==45))){ //if the key isn't the backspace & "-" (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press
}
}

function alphaonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode==13) return 9
else{
if (!((unicode==8)||(unicode==32)||(unicode==9))){ //keys which we want to allow
if (!(((unicode>64)&&(unicode<91))||((unicode>96)&&(unicode<123))))//if not a alphabets
return false //disable key press
}
}
}

function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press
}
}

function noNumbers(e)//from w3c
{
var my
var keychar
var numcheck

if(window.event) // IE
{
my = e.keyCode
}
else if(e.which) // Netscape/Firefox/Opera
{
my = e.which
}
keychar = String.fromCharCode(my)
numcheck = /\d/
return !numcheck.test(keychar)
}
